package board;

import com.opensymphony.xwork2.Action;

public class DetailAction implements Action {

	private int board_id;
	private BoardData board;
	
	@Override
	public String execute() throws Exception {

		BoardDao dao = BoardDao.getInstance();
		board = dao.getBoardDetail(board_id);
		
		return SUCCESS;
	}

	
	// getter, setter;
	public int getBoard_id() {
		return board_id;
	}

	public void setBoard_id(int board_id) {
		this.board_id = board_id;
	}

	public BoardData getBoard() {
		return board;
	}

	public void setBoard(BoardData board) {
		this.board = board;
	}

}
